package com.zh.common.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @version 1.0
 * @Description : 交易风控的日志实体 {请求方法、方法简称、平台商户编号、订单编号、交易金额、策略编号、请求结果、交易结果、响应信息、响应时间、创建时间 }
 * @Author : chenfei
 * @Create in : 2020/10/15 9:59
 */
@Data
public class TransIntercept extends BaseRowModel implements Serializable {

    private static final long serialVersionUID = -1198522451974449475L;

    @ExcelProperty(value = "请求方法",index = 0)
    @ApiModelProperty(value = "请求方法", name = "method")
    private String method;

    @ExcelProperty(value = "方法简称",index = 1)
    @ApiModelProperty(value = "方法简称", name = "notes")
    private String notes;

    @ExcelProperty(value = "平台商户编号",index = 2)
    @ApiModelProperty(value = "平台商户编号", name = "merchno")
    private String merchno;

    @ExcelProperty(value = "订单编号",index = 3)
    @ApiModelProperty(value = "订单编号", name = "traceno")
    private String traceno;

    @ExcelProperty(value = "交易金额",index = 4)
    @ApiModelProperty(value = "交易金额", name = "amount")
    private Double amount;

    @ExcelProperty(value = "策略编号",index = 5)
    @ApiModelProperty(value = "策略编号", name = "strategyId")
    private String strategyId;

    @ExcelProperty(value = "法人身份证号",index = 6)
    @ApiModelProperty(value = "法人身份证号", name = "identityId")
    private String identityId;

    @ExcelProperty(value = "请求结果",index = 7)
    @ApiModelProperty(value = "请求结果", name = "requestResult")
    private String requestResult;

    @ExcelProperty(value = "交易结果",index = 8)
    @ApiModelProperty(value = "交易结果", name = "result")
    private Boolean result;

    @ExcelProperty(value = "响应信息",index = 9)
    @ApiModelProperty(value = "响应信息", name = "response")
    private String response;

    @ExcelProperty(value = "触发的风控规则",index = 10)
    @ApiModelProperty(value = "触发的风控规则", name = "role")
    private String role;

    @ExcelProperty(value = "响应时间",index = 11)
    @ApiModelProperty(value = "响应时间", name = "responseDate")
    private String responseDate;

    @ExcelProperty(value = "创建时间",index = 12)
    @ApiModelProperty(value = "创建时间", name = "createDate")
    private String createDate;

    @ExcelProperty(value = "级别类型 1-off、2-fatal、3-error、4-warn、5-info、6-debug、7-trace、 8-all",index =13 )
    @ApiModelProperty(value = "级别类型", name = "levelType")
    private Integer levelType;


}
